#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<sys/types.h>
#include<unistd.h>
#include<errno.h>

int gval = 100;
void func(){
  printf("func begin!\n");
  exit(40);
  printf("func end!\n");
}


int main(int argc, char* argv[], char *env[]){
  (void)argc;
  (void)argv;
  (void)env; 
  func();

  printf("main!");
  sleep(2);
  _exit(1);
  return 0;
}
